<?php $view->extend('layout_admin.php') ?>

<section class="content-header">
    <h1>
        Camps
        <small>Liste</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Camps</a></li>
        <li class="active">Liste</li>
    </ol>
</section>

<div class="row">
    <div class="col-12">
    <h1>Liste des Camps</h1>
        <table class="table table-hover">
          <thead>
            <tr>
              <th>Pays</th>
              <th>Ville</th>
              <th>Camp Refugié</th>
              <th>Camp Vaccination</th>
              <th>Camp Prevention</th>
            </tr>
          </thead>
          <tbody>
            <?php 
                foreach ($camps as $c) {
             ?>
                <tr>
                  <td><?php echo $c->getPays()->getNom() ?></td>
                  <td><?php echo $c->getVille() ?></td>
                  <td><?php echo $c->getIsRefugie() ? 'V' : 'X' ?></td>
                  <td><?php echo $c->getIsVaccination() ? 'V' : 'X' ?></td>
                  <td><?php echo $c->getIsPrevention() ? 'V' : 'X' ?></td>
                </tr>
             <?php
                }
            ?>
          </tbody>
        </table>
    </div>
</div>
